package cn.bone.cloud.zuul;

import cn.bone.cloud.zuul.filter.AccessFilter;
import cn.bone.cloud.zuul.filter.LogFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

/**
 * Created by Administrator on 2017/11/3.
 */
@SpringCloudApplication
@EnableZuulProxy
public class ZuulMain {

    public static void main(String[] args){
        SpringApplication.run(ZuulMain.class,args);
    }

    @Bean
    public AccessFilter accessFilter(){
        return new AccessFilter();
    }

    @Bean
    public LogFilter logFilter(){
        return new LogFilter();
    }
}
